package com.test.proxy.statistic;

/**
 * @Author: junwe
 * @Date: 2020/12/14 20:59
 */
public class TeacherDaoProxy implements IteacherDao{
    private TeacherDao target;

    public TeacherDaoProxy(TeacherDao target) {
        this.target = target;
    }

    @Override
    public void teach() {
        System.out.println("开始代理");
        target.teach();
        System.out.println("结束代理");
    }
}
